%This file generates Figure A4 in the paper. This file calls platform.m
%that calculates mixed strategy equilibria for any council size K, number of
%locations N and ideal policies of parties L and R. The graph is plotted
%for N=501, L=0.4, R=0.6 and council size K odd number between 13 and 51.
%Note that the file platform.m calculates mixed strategy equilibria using
%the Lemke-Howson algorithm. That is, platform.m calls LemkeHowson.m that
%for ease of reference is also included in this folder. The version
%included in this replication package is  Retrieved on February 29, 2024 and cited as follows: Richard Katzwer (2024).
%Lemke-Howson Algorithm for 2-Player Games
%(https://www.mathworks.com/matlabcentral/fileexchange/44279-lemke-howson-algorithm-for-2-player-games),
%MATLAB Central File Exchange. The license.txt file in the folder contains
%the Copyright statement of LemkeHowson.m.

clear all
N=501
R=0.6
L=0.4

for K=13:2:51
[ExpectedWidthL,ExpectedWidthR,weights,PayoffL,PayoffR] = platform(K, N, R, L);
Heterogeneity(K,1)=ExpectedWidthL(1,1);
WeightsforK(:,K)=weights(:,1);
Graph(:,K-12)=weights(:,1);
end

for K=13:2:51
Graph(2,K-12)=K;
end

Graph(:,2:2:39) = [];

sca = scatter(Graph(2,:),Graph(1,:)); xticks(13:2:51);
saveas(sca,'FigureA4.eps','epsc');
